//
//  TechnicalAndFeatureCell.m
//  AmazingShopping
//
//  Created by Tan on 5/7/13.
//  Copyright (c) 2013 Tan Hoang. All rights reserved.
//

#import "TechnicalAndFeatureCell.h"

@implementation TechnicalAndFeatureCell

@synthesize title, detailText;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setTitle:(NSString *)t{
    if (![title isEqualToString:t]) {
        title = [t copy];
        titleLabel.text = title;
        [titleLabel sizeToFit];
    }
}

- (void)setDetailText:(NSString *)dt{
    if (![detailText isEqualToString:dt]) {
        detailText = [dt copy];
        detailLabel.text = detailText;
        [detailLabel setVerticalAlignment:0];
        detailLabel.numberOfLines = 3;
//        [detailLabel sizeToFit];
    }
}

@end
